Skip to content

Add run id pattern ti filter#58361

Closed
Pei-Cheng-Yu wants to merge 2 commits intoapache:mainfrom
Pei-Cheng-Yu:add-run_id_pattern-ti-filter
Closed

Add run id pattern ti filter#58361
Pei-Cheng-Yu wants to merge 2 commits intoapache:mainfrom
Pei-Cheng-Yu:add-run_id_pattern-ti-filter

Conversation

@Pei-Cheng-Yu
Copy link
Contributor

WHY:

related: #53051
According to #56920, we need a run_id_pattern filter for TI and we haven't yet

Task Instances should support run_id_pattern filtering, similar to how we added pattern filters for pool, queue, and operator.
Currently, run_id only supports exact search, not pattern matching

This PR adds backend support for run_id_pattern so the UI can correctly use a pattern-based filter instead of requiring the full run_id.

HOW:

The new unit tests are based on existing tests for other filters controlled inside create_task_instances (e.g., version_number).
I followed the same structure to keep the behavior consistent across all pattern filters.

So the expected_ti is set according to the outcome that is fixed by create_task_instances method


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Nov 16, 2025
@guan404ming
Copy link
Member

see this -> #56920 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants